<#assign pageName="新增平台信息">
<@override name="head-styles">
</@override>
<@override name="page-content">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>${pageName}</legend>
    </fieldset>
    <form class="layui-form padding-10" lay-filter="formGuidAdd">
         <@ctrl.TreeSelect path="guids.upperGuid" dataList=guidsList![] fieldText="sysModuleName" 
             fieldValue="guid" labelText="上级平台" fieldParentID="upperGuid" parentidValue="-1" required="required">
             <option value="-1">－无上级平台－</option>
         </@ctrl.TreeSelect>
         <@ctrl.SingleSelect path="guids.sysModuleType" options={"1":"业务平台","-1":"标识平台"} labelText="平台类型" required="required"/>
         <@ctrl.Textbox path="guids.guid" labelText="平台GUID" required="required"/>
         <@ctrl.Textbox path="guids.sysModuleCode" labelText="平台编码" required="required"/>
         <@ctrl.Textbox path="guids.sysModuleName" labelText="平台名称" required="required"/>
         <@ctrl.Textbox path="guids.versionNo" labelText="当前版本" required="required"/>
         <@ctrl.FormAction/>
     </form>
</@override>
<@override name="page-scripts">
    <script>
        $(function(){
            layui.use(['form','layer', 'jquery'], function(){
                var form = layui.form;
                var layer=layui.layer;
                $=layui.jquery;
                //监听提交
                form.on('submit(submit)', function(data){
                    submitData(data.field, '${contextPath}/admin/guids/add', function(){location.href="${contextPath}/admin/guids/management";});
                    return false;
                });
            })
        })
    </script>
</@override>
<@extends name="/layout/basepage.html"/> 